package com.wheesper.www.WheesperServer.Common;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

public class TaskQueue<Something> {
	
	BlockingQueue<Something> _queue;
	public TaskQueue() {
		_queue = new LinkedBlockingQueue<Something>();
	}
	
	public void put(Something something) throws InterruptedException {
		_queue.put(something);
	}
	
	public Something take() throws InterruptedException {
		return _queue.take();
	}
}
